package com.hhkj.api.sale.controller;

import com.hhkj.api.sale.common.session.model.LoginSale;
import com.hhkj.api.sale.service.biz.ApiSaleAccountBizService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.framework.login.api.ApiLogin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ApiSaleAccountController
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/10/26 15:11
 */
@RestController
@RequestMapping("/api/sale/account")
public class ApiSaleAccountController {

    @Autowired
    private ApiSaleAccountBizService apiSaleAccountBizService;

    /** 获取账户信息 */
    @ApiLogin(LoginSale.class)
    @GetMapping()
    public AjaxResult get() {
        return AjaxResult.success(apiSaleAccountBizService.get());
    }
}
